/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gr.uop.cst.context.base;

/**
 *
 * @author Ioannis Bourlakos &lt;mi49@uop.gr&gt;
 */
public class ContextValueEvent<T> extends ContextEvent {
    private T value;

    public ContextValueEvent(ContextEvaluatable<T> source, T value) {
        super(source);
        this.value = value;
    }

    public ContextValueEvent(ContextEvaluatable<T> source) {
        this(source,null);
    }

    @Override
    public ContextEvaluatable<T> getSource() {
        return (ContextEvaluatable<T>) super.getSource();
    }

    public T getValue() {
        return this.value;
    }
}
